<%@page import="edu.gatech.gellinservlet.model.*" %> 
<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%-- 
    Document   : index
    Created on : Jun 20, 2011, 8:04:04 PM
    Author     : Tyler Powell
--%>
<%@include file="include_header.jsp"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="style.css">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login - Lab Assistant Pro</title>
    </head>
    <body>
    <center><h1>Welcome to Lab Assistant Pro!</h1></center>     
        <div style="padding-left:45%;">
            <form name="frm" action="validate_login.jsp" method="POST">
                Username:<br><input type="text" name="userName" value="" /><br>
                Password:<br><input type="password" name="pwd" value="" /><br><br>
                <input type="submit" value="Login" name="login_click" /><br>
            </form><br><br>
            <% //show message on login screen based on errCode
                String errorCode = request.getParameter("errCode");
                if ("invalid".equals(errorCode))
                {
                    out.println("<font color=red>Username and or password is incorrect. Please try again.</font>");
                }
                if ("logout".equals(errorCode))
                {
                    out.println("<font color=red>You have successfully logged out.</font>");
                }
            %>           
        </div>
    </body>
</html>
